<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<%@ page isELIgnored="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-cn">
<head>
<title>搜索结果</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="gb2312" />
<link href="skin1/css/public.css" type="text/css" rel="stylesheet" />
<link href="skin1/css/invite.css" type="text/css" rel="stylesheet" />
<link href="skin1/css/header.css" type="text/css" rel="stylesheet" />
<script src="dwr/interface/UserAction.js"></script>
		<script src="dwr/engine.js"></script> 
		<script src="dwr/util.js"></script>
		<script>
			function friendRequest(userNo) {
				UserAction.friendRequest(userNo, callback);
			}
			
			function callback(data) {
				alert(data);
			}
			
		</script>
</head>
<body>
<div class=pageContent>
<jsp:include flush="true" page="../include/header.jsp"></jsp:include>

<div class=main>
<div class=mainLeft4>
  <div class="tp7 tp7n">
    <h3>热门搜索词</h3>
    <ul class="iv1">
      <li><a href="#">热门搜索词</a></li>
      <li><a href="#">热门搜索词</a></li>
      <li><a href="#">热门搜索词</a></li>
      <li><a href="#">热门搜索词</a></li>
      <li><a href="#">热门搜索词</a></li>
      <li><a href="#">热门搜索词</a></li>
    </ul>
  </div>
</div>
<div class=mainright4>
<div class="tp7 tp7n">
  <h3>搜索结果</h3>
  <div id="sh2">共搜索到 ${requestScope.count} 条记录。</div>
  <div id="sh">
  <c:forEach items="${requestScope.list}" var="user">
  	<div class="sh1"><dl>
  	    <a href="homepage?userNo=${user.userNo}"><img src="upload/headphoto/thumbnail/${user.photoURL}" alt="img" width="90" height="70" /></a>
  	    <a href="homepage?userNo=${user.userNo}">${user.username}</a>
  	    <br/><a href="javascript:friendRequest(${user.userNo})">加为好友</a>
  	    <br/><a href="#">发短消息</a>
  	</dl>
    	<div><span>所在地：${user.provinceCode}-${user.cityCode}-${user.regionCode}</span><span>爱好：${user.hobby}</span><br />
		${user.signment}</div>
    </div>
    </c:forEach>
    
    
    <div id="sh3"><c:out value="${requestScope.url}" escapeXml="false"></c:out><br /><input type="button" class="fmbule" value="返 回" />
    </div>
  </div><div class="clear"></div>
</div>
</div><div class="clear"></div>
</div>

<jsp:include flush="true" page="../include/footer.jsp"></jsp:include>

</div>
</body>
</html>
